package com.t.bricks.bussiness.db.entity.voterecord.base;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.t.bricks.annotation.DataInfo;

/**
 * 投票记录'VoteRecord'表实体类
 * 警告:非数据库字段禁止在此添加,应该创建扩展实体中添加
 */
@ApiModel("投票记录VoteRecord")
public class VoteRecordBase implements Serializable {

	private static final long serialVersionUID = -1L;// 使用rmi时需修改

	/**
	 * 记录编号
	 */
	//[start]
	@DataInfo( sDbName="BricksCommonBusiness", sTableName="VoteRecord", sName="sId", sComment="记录编号", isDbField=true, sDbFileType="varchar",
		sDefaultData="", isExtra=false, iskey=true, isNull=false,
		iMaxLength=8, isDecimal=false, iIntegralLength=8, iDecimalLength=0, iIndex=0 )
	@ApiModelProperty(value="记录编号", example="")
	//[end]
	protected String sId;

	/**
	 * 标题
	 */
	//[start]
	@DataInfo( sDbName="BricksCommonBusiness", sTableName="VoteRecord", sName="sTitle", sComment="标题", isDbField=true, sDbFileType="nvarchar",
		sDefaultData="", isExtra=false, iskey=false, isNull=false,
		iMaxLength=200, isDecimal=false, iIntegralLength=400, iDecimalLength=0, iIndex=1 )
	@ApiModelProperty(value="标题", example="")
	//[end]
	protected String sTitle;

	/**
	 * 发起人编号
	 */
	//[start]
	@DataInfo( sDbName="BricksCommonBusiness", sTableName="VoteRecord", sName="sUserId", sComment="发起人编号", isDbField=true, sDbFileType="varchar",
		sDefaultData="00000000", isExtra=false, iskey=false, isNull=false,
		iMaxLength=8, isDecimal=false, iIntegralLength=8, iDecimalLength=0, iIndex=2 )
	@ApiModelProperty(value="发起人编号", example="00000000")
	//[end]
	protected String sUserId;

	/**
	 * 选项内容
	 */
	//[start]
	@DataInfo( sDbName="BricksCommonBusiness", sTableName="VoteRecord", sName="sContent", sComment="选项内容", isDbField=true, sDbFileType="nvarchar",
		sDefaultData="", isExtra=false, iskey=false, isNull=false,
		iMaxLength=500, isDecimal=false, iIntegralLength=1000, iDecimalLength=0, iIndex=3 )
	@ApiModelProperty(value="选项内容", example="")
	//[end]
	protected String sContent;

	/**
	 * 投票开始时间
	 */
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")//解决表单提交时字符串时间值错误
	//[start]
	@DataInfo( sDbName="BricksCommonBusiness", sTableName="VoteRecord", sName="dStartDate", sComment="投票开始时间", isDbField=true, sDbFileType="datetime",
		sDefaultData="", isExtra=false, iskey=false, isNull=false,
		iMaxLength=23, isDecimal=true, iIntegralLength=-1, iDecimalLength=-1, iIndex=4 )
	@ApiModelProperty(value="投票开始时间", example="")
	//[end]
	protected Date dStartDate;

	/**
	 * 投票结束时间
	 */
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")//解决表单提交时字符串时间值错误
	//[start]
	@DataInfo( sDbName="BricksCommonBusiness", sTableName="VoteRecord", sName="dEndDate", sComment="投票结束时间", isDbField=true, sDbFileType="datetime",
		sDefaultData="", isExtra=false, iskey=false, isNull=false,
		iMaxLength=23, isDecimal=true, iIntegralLength=-1, iDecimalLength=-1, iIndex=5 )
	@ApiModelProperty(value="投票结束时间", example="")
	//[end]
	protected Date dEndDate;

	/**
	 * 类型(枚举,1:公开;2:匿名)
	 */
	//[start]
	@DataInfo( sDbName="BricksCommonBusiness", sTableName="VoteRecord", sName="iType", sComment="类型(枚举,1:公开;2:匿名)", isDbField=true, sDbFileType="int",
		sDefaultData="1", isExtra=false, iskey=false, isNull=false,
		iMaxLength=8, isDecimal=false, iIntegralLength=4, iDecimalLength=0, iIndex=6 )
	@ApiModelProperty(value="类型(枚举,1:公开;2:匿名)", example="1")
	//[end]
	protected Integer iType;

	/**
	 * 
	 */
	//[start]
	@DataInfo( sDbName="BricksCommonBusiness", sTableName="VoteRecord", sName="sDepartmentId", sComment="", isDbField=true, sDbFileType="varchar",
		sDefaultData="", isExtra=false, iskey=false, isNull=true,
		iMaxLength=90, isDecimal=false, iIntegralLength=90, iDecimalLength=0, iIndex=7 )
	@ApiModelProperty(value="", example="")
	//[end]
	protected String sDepartmentId;

	/**
	 * 参与部门
	 */
	//[start]
	@DataInfo( sDbName="BricksCommonBusiness", sTableName="VoteRecord", sName="sDepartment", sComment="参与部门", isDbField=true, sDbFileType="nvarchar",
		sDefaultData="", isExtra=false, iskey=false, isNull=true,
		iMaxLength=32, isDecimal=false, iIntegralLength=64, iDecimalLength=0, iIndex=8 )
	@ApiModelProperty(value="参与部门", example="")
	//[end]
	protected String sDepartment;

	/**
	 * 备注
	 */
	//[start]
	@DataInfo( sDbName="BricksCommonBusiness", sTableName="VoteRecord", sName="sMemo", sComment="备注", isDbField=true, sDbFileType="nvarchar",
		sDefaultData="", isExtra=false, iskey=false, isNull=true,
		iMaxLength=200, isDecimal=false, iIntegralLength=400, iDecimalLength=0, iIndex=9 )
	@ApiModelProperty(value="备注", example="")
	//[end]
	protected String sMemo;

	/**
	 * 创建人
	 */
	//[start]
	@DataInfo( sDbName="BricksCommonBusiness", sTableName="VoteRecord", sName="sCreator", sComment="创建人", isDbField=true, sDbFileType="varchar",
		sDefaultData="00000000", isExtra=false, iskey=false, isNull=false,
		iMaxLength=8, isDecimal=false, iIntegralLength=8, iDecimalLength=0, iIndex=10 )
	@ApiModelProperty(value="创建人", example="00000000")
	//[end]
	protected String sCreator;

	/**
	 * 创建时间
	 */
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")//解决表单提交时字符串时间值错误
	//[start]
	@DataInfo( sDbName="BricksCommonBusiness", sTableName="VoteRecord", sName="dCreateDate", sComment="创建时间", isDbField=true, sDbFileType="datetime",
		sDefaultData="getdate", isExtra=false, iskey=false, isNull=false,
		iMaxLength=23, isDecimal=true, iIntegralLength=-1, iDecimalLength=-1, iIndex=11 )
	@ApiModelProperty(value="创建时间", example="getdate")
	//[end]
	protected Date dCreateDate;

	/**
	 * 修改人
	 */
	//[start]
	@DataInfo( sDbName="BricksCommonBusiness", sTableName="VoteRecord", sName="sModifieder", sComment="修改人", isDbField=true, sDbFileType="varchar",
		sDefaultData="00000000", isExtra=false, iskey=false, isNull=false,
		iMaxLength=8, isDecimal=false, iIntegralLength=8, iDecimalLength=0, iIndex=12 )
	@ApiModelProperty(value="修改人", example="00000000")
	//[end]
	protected String sModifieder;

	/**
	 * 修改时间
	 */
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")//解决表单提交时字符串时间值错误
	//[start]
	@DataInfo( sDbName="BricksCommonBusiness", sTableName="VoteRecord", sName="dModifiedDate", sComment="修改时间", isDbField=true, sDbFileType="datetime",
		sDefaultData="getdate", isExtra=false, iskey=false, isNull=false,
		iMaxLength=23, isDecimal=true, iIntegralLength=-1, iDecimalLength=-1, iIndex=13 )
	@ApiModelProperty(value="修改时间", example="getdate")
	//[end]
	protected Date dModifiedDate;

	/**
	 * 状态(枚举,1:进行中;2:已截至)
	 */
	//[start]
	@DataInfo( sDbName="BricksCommonBusiness", sTableName="VoteRecord", sName="iState", sComment="状态(枚举,1:进行中;2:已截至)", isDbField=true, sDbFileType="int",
		sDefaultData="1", isExtra=false, iskey=false, isNull=false,
		iMaxLength=8, isDecimal=false, iIntegralLength=4, iDecimalLength=0, iIndex=14 )
	@ApiModelProperty(value="状态(枚举,1:进行中;2:已截至)", example="1")
	//[end]
	protected Integer iState;

	/**
	 * 序号
	 */
	//[start]
	@DataInfo( sDbName="BricksCommonBusiness", sTableName="VoteRecord", sName="iIndex", sComment="序号", isDbField=true, sDbFileType="int",
		sDefaultData="1", isExtra=false, iskey=false, isNull=false,
		iMaxLength=8, isDecimal=false, iIntegralLength=4, iDecimalLength=0, iIndex=15 )
	@ApiModelProperty(value="序号", example="1")
	//[end]
	protected Integer iIndex;

	/**
	 * 版本号
	 */
	//[start]
	@DataInfo( sDbName="BricksCommonBusiness", sTableName="VoteRecord", sName="iVersion", sComment="版本号", isDbField=true, sDbFileType="int",
		sDefaultData="1", isExtra=false, iskey=false, isNull=false,
		iMaxLength=8, isDecimal=false, iIntegralLength=4, iDecimalLength=0, iIndex=16 )
	@ApiModelProperty(value="版本号", example="1")
	//[end]
	protected Integer iVersion;

	/**
	 * 取 记录编号
	 * @return String
	 */
	public String getsId() {
		return sId;
	}

	/**
	 * 设置记录编号
	 * @param sId
	 */
	public void setsId(String sId) {
		this.sId = sId;
	}

	/**
	 * 取 标题
	 * @return String
	 */
	public String getsTitle() {
		return sTitle;
	}

	/**
	 * 设置标题
	 * @param sTitle
	 */
	public void setsTitle(String sTitle) {
		this.sTitle = sTitle;
	}

	/**
	 * 取 发起人编号
	 * @return String
	 */
	public String getsUserId() {
		return sUserId;
	}

	/**
	 * 设置发起人编号
	 * @param sUserId
	 */
	public void setsUserId(String sUserId) {
		this.sUserId = sUserId;
	}

	/**
	 * 取 选项内容
	 * @return String
	 */
	public String getsContent() {
		return sContent;
	}

	/**
	 * 设置选项内容
	 * @param sContent
	 */
	public void setsContent(String sContent) {
		this.sContent = sContent;
	}

	/**
	 * 取 投票开始时间
	 * @return Date
	 */
	public Date getdStartDate() {
		return dStartDate;
	}

	/**
	 * 设置投票开始时间
	 * @param dStartDate
	 */
	public void setdStartDate(Date dStartDate) {
		this.dStartDate = dStartDate;
	}

	/**
	 * 取 投票结束时间
	 * @return Date
	 */
	public Date getdEndDate() {
		return dEndDate;
	}

	/**
	 * 设置投票结束时间
	 * @param dEndDate
	 */
	public void setdEndDate(Date dEndDate) {
		this.dEndDate = dEndDate;
	}

	/**
	 * 取 类型(枚举,1:公开;2:匿名)
	 * @return Integer
	 */
	public Integer getiType() {
		return iType;
	}

	/**
	 * 设置类型(枚举,1:公开;2:匿名)
	 * @param iType
	 */
	public void setiType(Integer iType) {
		this.iType = iType;
	}

	/**
	 * 取 
	 * @return String
	 */
	public String getsDepartmentId() {
		return sDepartmentId;
	}

	/**
	 * 设置
	 * @param sDepartmentId
	 */
	public void setsDepartmentId(String sDepartmentId) {
		this.sDepartmentId = sDepartmentId;
	}

	/**
	 * 取 参与部门
	 * @return String
	 */
	public String getsDepartment() {
		return sDepartment;
	}

	/**
	 * 设置参与部门
	 * @param sDepartment
	 */
	public void setsDepartment(String sDepartment) {
		this.sDepartment = sDepartment;
	}

	/**
	 * 取 备注
	 * @return String
	 */
	public String getsMemo() {
		return sMemo;
	}

	/**
	 * 设置备注
	 * @param sMemo
	 */
	public void setsMemo(String sMemo) {
		this.sMemo = sMemo;
	}

	/**
	 * 取 创建人
	 * @return String
	 */
	public String getsCreator() {
		return sCreator;
	}

	/**
	 * 设置创建人
	 * @param sCreator
	 */
	public void setsCreator(String sCreator) {
		this.sCreator = sCreator;
	}

	/**
	 * 取 创建时间
	 * @return Date
	 */
	public Date getdCreateDate() {
		return dCreateDate;
	}

	/**
	 * 设置创建时间
	 * @param dCreateDate
	 */
	public void setdCreateDate(Date dCreateDate) {
		this.dCreateDate = dCreateDate;
	}

	/**
	 * 取 修改人
	 * @return String
	 */
	public String getsModifieder() {
		return sModifieder;
	}

	/**
	 * 设置修改人
	 * @param sModifieder
	 */
	public void setsModifieder(String sModifieder) {
		this.sModifieder = sModifieder;
	}

	/**
	 * 取 修改时间
	 * @return Date
	 */
	public Date getdModifiedDate() {
		return dModifiedDate;
	}

	/**
	 * 设置修改时间
	 * @param dModifiedDate
	 */
	public void setdModifiedDate(Date dModifiedDate) {
		this.dModifiedDate = dModifiedDate;
	}

	/**
	 * 取 状态(枚举,1:进行中;2:已截至)
	 * @return Integer
	 */
	public Integer getiState() {
		return iState;
	}

	/**
	 * 设置状态(枚举,1:进行中;2:已截至)
	 * @param iState
	 */
	public void setiState(Integer iState) {
		this.iState = iState;
	}

	/**
	 * 取 序号
	 * @return Integer
	 */
	public Integer getiIndex() {
		return iIndex;
	}

	/**
	 * 设置序号
	 * @param iIndex
	 */
	public void setiIndex(Integer iIndex) {
		this.iIndex = iIndex;
	}

	/**
	 * 取 版本号
	 * @return Integer
	 */
	public Integer getiVersion() {
		return iVersion;
	}

	/**
	 * 设置版本号
	 * @param iVersion
	 */
	public void setiVersion(Integer iVersion) {
		this.iVersion = iVersion;
	}

}
